{extend name="public/base"}
{block name='main'}
<!--编辑菜单-->
<form class="layui-form layui-form-pane" action="" style="padding:20px;">

    <div class="layui-form-item">
        <label class="layui-form-label">广告位名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="name" placeholder="请输入" class="layui-input" value="{$info.name|default=''}">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">广告位类型</label>
        <div class="layui-input-block">
            <select name="tpl">
                {volist name="tpl_list" id="val" }
                    <option value="{$val.alias}" {eq name="info.tpl|default=''" value="$val.alias"}selected="selected"{/eq} >{$val.name}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">广告位尺寸</label>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="number" name="width" placeholder="宽px" autocomplete="off" class="layui-input" value="{$info.width|default='0'}">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="number" name="height" placeholder="高px" autocomplete="off" class="layui-input" value="{$info.height|default='0'}">
            </div>
        </div>
    </div>



    <div class="layui-form-item"  pane="">
        <label class="layui-form-label">是否启用</label>
        <div class="layui-input-block">
            <input type="radio" title="是" name="status" value="1"  {eq name="$info.status|default='1'" value="1"}checked="checked"{/eq}>
            <input type="radio" title="否" name="status" value="0"  {eq name="$info.status|default='0'" value="0"}checked="checked"{/eq}>
        </div>
    </div>

    <div class="layui-form-item">
        <label class=""></label>
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="content_edit">提交保存</button>
        </div>
    </div>
    <input type="hidden" name="id" id="id" value="{$info.id|default=''}" />
</form>
<script type="text/javascript" src="__PUBLIC__/admin/layui/layui.js"></script>
<script>
    layui.use(['layer','jquery','form','element','layedit'], function () {

        Oper.initUpdate(layui, '广告类型', 'content_edit', 'adboard/edit');
    });
</script>

{/block}